<template>
  <div id="app">
    <div>
      <el-input placeholder="请输入账号" v-model="item.userName" clearable></el-input>
      <el-input placeholder="请输入密码" v-model="item.userPwd" show-password></el-input>
      <el-radio-group v-model="item.sex">
        性别：
        <el-radio :label="1">男</el-radio>
        <el-radio :label="0">女</el-radio>
      </el-radio-group>
      <el-checkbox-group v-model="item.hobby">
        爱好：
        <el-checkbox label="篮球"></el-checkbox>
        <el-checkbox label="足球"></el-checkbox>
        <el-checkbox label="羽毛球"></el-checkbox>
      </el-checkbox-group>
      <el-row>
        <el-button @click="submit" type="primary">注册</el-button>
      </el-row>
      
    </div>
  </div>
</template>

<script>
export default {
  data: function () {
    return {
      item: {
        userName: "",
        userPwd: "",
        sex: 1,
        hobby: [],
      },
      student_list: [],
    };
  },
  methods: {
    submit(){
      console.log(this.item);
    }
  },
  created() {},
};
</script>

<style>
</style>
